projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a531ec
)
Be safe against stray booleans
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 1 Feb 2015 22:30:10 +0000
(17:30 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 1 Feb 2015 22:30:10 +0000
(17:30 -0500)
Since gboolean is a typedef for int, the compiler won't complain
about gdk_window_set_event_compression (w, 2). So, make it work.
https://bugzilla.gnome.org/show_bug.cgi?id=742566
gdk/gdkwindow.c
patch
|
blob
|
history
diff --git
a/gdk/gdkwindow.c
b/gdk/gdkwindow.c
index 974c43241d898dc2f096e9583a4b13db05b27ba8..31033678dbdb45479d3167c33c4ed2675f3e9a8a 100644
(file)
--- a/
gdk/gdkwindow.c
+++ b/
gdk/gdkwindow.c
@@
-9947,7
+9947,7
@@
gdk_window_set_event_compression (GdkWindow *window,
{
g_return_if_fail (GDK_IS_WINDOW (window));
- window->event_compression = event_compression;
+ window->event_compression =
!!
event_compression;
}
/**